﻿using System;

namespace ErikLieben.SharePoint.WebParts
{
    public class FaceBookUser
    {
        /// <summary>
        /// Gets or sets the username.
        /// </summary>
        /// <value>The username.</value>
        public String Name
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the photo.
        /// </summary>
        /// <value>The photo.</value>
        public String Photo
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the about me.
        /// </summary>
        /// <value>The about me.</value>
        public String AboutMe
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the title.
        /// </summary>
        /// <value>The title.</value>
        public String Title
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the hire date.
        /// </summary>
        /// <value>The hire date.</value>
        public DateTime HireDate
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the department.
        /// </summary>
        /// <value>The department.</value>
        public String Department
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the birth day.
        /// </summary>
        /// <value>The birth day.</value>
        public DateTime BirthDay
        {
            get;
            set;
        }

        /// <summary>
        /// Gets the birth day of the user for this year.
        /// </summary>
        /// <value>The birth day this year.</value>
        public DateTime BirthDayThisYear
        {
            get
            {
                return new DateTime(DateTime.Now.Year, BirthDay.Month, BirthDay.Day);
            }
        }

        /// <summary>
        /// Gets the age.
        /// </summary>
        /// <value>The age.</value>
        public Int32 Age
        {
            get
            {
                return DateTime.Now.Year - BirthDay.Year;
            }
        }

        /// <summary>
        /// Gets the age + 1.
        /// </summary>
        /// <value>The new age.</value>
        public Int32 NewAge
        {
            get
            {
                return Age + 1;
            }
        }

        /// <summary>
        /// Gets or sets my site URL.
        /// </summary>
        /// <value>My site URL.</value>
        public String MySiteUrl
        {
            get;
            set;
        }
    }
}
